<template>
    <div>
        <p>父组件的当前值为：{{ number }}</p>
        <CustomSubComponent @upateCount="updateEmitCount"/>
    </div>
</template>

<script setup>
   import CustomSubComponent from './CustomSubComponent.vue'
   import { ref } from 'vue'
   const number = ref(10)
   const updateEmitCount = (value) => {
    number.value += value
   }
</script>